 /**
 * Copyright (c) 2020 kedacom
 * OpenATC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 * http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 **/
 //to reset element-ui default css
.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;
    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

/********************** 设置头部样式 ********************/
.el-menu-item:focus, .el-menu-item:hover {
  background-color: $--color-white;
}

.el-menu-item, .el-submenu__title {
  height: 50px;
  line-height: 50px;
}

/********************** dialog中相关样式 ********************/
.el-dialog__title {
  font-size: 18px;
  font-weight: normal;
  font-stretch: normal;
  line-height: 14px;
  letter-spacing: 0px;
  color: $--color-text-regular;
}

.el-dialog__footer .el-button {
  width: 56px;
  height: 32px;
  padding: 0;
}
.el-dialog__footer .change-deviceid {
  width: 80px;
  height: 32px;
  padding: 0;
}

.el-dialog__body .el-form-item__label {
  text-align: right;
  font-size: 14px;
  padding: 0 24px 0 0;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0px;
  color: $--color-text-secondary;
}

.el-dialog__body .el-input__inner {
  height: 34px;
  line-height: 34px;
}